package config

import (
	"os"

	"github.com/spf13/viper"
)

func InitConfig() {
	dir, _ := os.Getwd()
	viper.SetConfigName("Application")
	viper.SetConfigType("yml")
	viper.AddConfigPath(dir + string(os.PathSeparator))
	err := viper.ReadInConfig()
	if err != nil {
		panic("load config error......")
	}
}
